home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_11_07
/
1107118a
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1993-05-05
|
327 b
|
24 lines
//
// list.h - list interface using global classes
//
struct listnode
{
listnode(unsigned n, listnode *p)
: number(n), next(p) { }
unsigned number;
listnode *next;
};
class list
{
public:
list(unsigned n);
~list();
void add(unsigned n);
void print();
private:
listnode *first, *last;
};